//
//  SelectConfig.swift
//  Exchange
//
//  Created by 孟祥群 on 2018/4/28.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit

class SelectConfig: NSObject {
    var style:sheetStyle? //样式
    var cellHeight:CGFloat? //底部取消按钮高度
    var titleFont:Int?
    var selectorColor:UIColor?
    var cancelColor:UIColor?
    var spaceNumber = 8 //间隙
    var viewHeight:CGFloat? //弹框总高度
    init(style:sheetStyle) {
        super.init()
        self.style = style
    }
}

class ComonConfig: SelectConfig {
    var canScro:Bool = false
    
    override init(style:sheetStyle) {
        super.init(style: style)
        selectorColor = UIColor(hexStr:"#325de9")
        cancelColor = kTextColor
        cellHeight = 45
        titleFont = 15
        
    }
}
class SelectionConfig: SelectConfig {
    var selectBackColor:UIColor?
    var filterHeight:CGFloat? //币币订单筛选默认高度
    var filtetOpenHeight:CGFloat = 334.00 //币币订单筛选展开高度
    var leverFliterHeight:CGFloat = 448.00 + (isiPhoneX() ? 34 : 0)//杠杆订单筛选高度
    var leverFliterOpenHeight:CGFloat = 488.00 //杠杆订单筛选展开高度
    
    override init(style:sheetStyle) {
        super.init(style: style)
        filterHeight = 300.00 + (isiPhoneX() ? 34 : 0)
        selectBackColor = UIColor.gray
    }
}

class CapitalConfig: SelectConfig {
    var capitalHeight:CGFloat = 0.0 //资金明细内容高度
    let capitalHeadHeight:CGFloat = 65.00 //资金明细头部高度
    override init(style:sheetStyle) {
        super.init(style: style)
       capitalHeight =  style == .capitalAllStyle ? 300.00 : 120
        selectorColor = UIColor(hexStr:"#325de9")
        cancelColor = kTextColor
        cellHeight = 45
        titleFont = 15
    }
}
class LeverConfig: SelectConfig {
    let LeverHeadHeight:CGFloat = 65.00 //杠杆头部高度
    let leverdefaloutHeight:CGFloat =  275.00 //杠杆市价高度
    let leverOpenHeight:CGFloat = 407.00 //杠杆市价展开高度
    let leverLimitedHeight:CGFloat = 407.00 //杠杆限价展开高度
    let LeverFootHeight:CGFloat = 55.00 //杠杆底部高度
    
    override init(style: sheetStyle) {
        super.init(style: style)
        
    }
}


